From: Florian Müllner Date: Wed, 22 Aug 2012 14:48:55 +0000 (+0200) Subject: messageTray: Handle 'popup-menu' signal on summary items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6065 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ecbf2f14295dd5e291ab988264d7bdac7a1ea8d7;p=gnome-shell.git messageTray: Handle 'popup-menu' signal on summary items Now that the message-tray is key navigable, we should enable triggering the right-click menu by keyboard shortcut as well. https://bugzilla.gnome.org/show_bug.cgi?id=682486 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 7d9afb7bb..a18e73501 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1578,10 +1578,15 @@ const MessageTray = new Lang.Class({ })); summaryItem.actor.connect('clicked', Lang.bind(this, - function (actor, button) { + function(actor, button) { actor.grab_key_focus(); this._onSummaryItemClicked(summaryItem, button); })); + summaryItem.actor.connect('popup-menu', Lang.bind(this, + function(actor, button) { + actor.grab_key_focus(); + this._onSummaryItemClicked(summaryItem, 3); + })); source.connect('destroy', Lang.bind(this, this._onSourceDestroy));